<?php
include_once("../modules/checkA.php");
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'finance'");
?>



<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
include_once("detail-list-function.php"); 
?>
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include_once(ROOT_PATH_.'/controlbase/modules/head.php'); ?>


	
</head>

<body>

<div id="topbar"><?php include ROOT_PATH_.'/controlbase/modules/topbar.php'; ?></div>

<div id="container" class="member">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controlbase/modules/sidebar.php'; ?>
        </div>


<div id="content"> 




<div class="box member-add-box layui-form">
<h1>新增收支信息</h1>


<div class="tips">
    <div>学费收款,退学费,文明驾驶车费,转学收据,补考费请从<a HREF=""> 学员管理 </a>>学员信息>资料信息 中生成财务数据。</div>
    <div>采购物料账目，请从<a href="<?echo $domain?>/controlbase/inventory/detail-list.php?nav-itemed=material">进销存系统</a>中录入。</div>
</div>


<form id="add-member-form" method="post" action="detail-add-function.php?nav-itemed=finance" enctype="multipart/form-data" class="layui-form">


    <div class="layui-form-item">
        <label class="layui-form-label">项目内容</label>
        <div class="layui-input-block">
            <input type="text" name="name" lay-verify="required" placeholder="请输入内容" autocomplete="off" class="layui-input" value="">
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">金额</label>
        <div class="layui-input-block">
            <input type="text" name="cost" lay-verify="required" placeholder="请输入金额" autocomplete="on" class="layui-input" value="">
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">日期</label>
        <div class="layui-input-block">
            <input type="text" name="applydate" id="date" autocomplete="off" class="layui-input"  value="<?echo date("Y-m-d H:i:s")?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon">
        </div>
    </div>





    <?
    $principal_list=select_lines_all_items($table_Prefix."employee","nid desc","","0");
    ?>

    <div class="layui-form-item">
        <label class="layui-form-label">用款人</label>
        <div class="layui-input-block">
            <select name="principal" lay-search="">

                <option  value="无" > 无</option>

                <? for($i=0;$i<count($principal_list);$i++){ ?>
                    <option value="<? echo $principal_list[$i]['nid'] ?>"><? echo $principal_list[$i]['mid'] ?> : <? echo $principal_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">类型</label>
        <div class="layui-input-block">
            <select name="classify" >
                <option value="维修费">维修费</option>
                <option value="零件购买">零件购买</option>
                <option value="购买保险">购买保险</option>
                <option value="业务费">业务费</option>
                <option value="设备购置费">设备购置费</option>
                <option value="业务招待费">业务招待费</option>
                <option value="油费">油费</option>
                <option value="车辆年审和季审费">车辆年审和季审费</option>
                <option value="水电费">水电费</option>
                <option value="租赁费">租赁费</option>
                <option value="高速公路费">高速公路费</option>
                <option value="伙食支出">伙食支出</option>
                <option value="其他">其他</option>
            </select>
        </div>
    </div>




        <?
        if(($_SESSION['mid']!="admin")&&($_SESSION['mid']!="admin"))
        {

        }
else{
        $department_list=select_lines_all_items($table_Prefix."department","nid desc","","0");
}
        ?>

        <div class="layui-form-item">
            <label class="layui-form-label">部门</label>
            <div class="layui-input-block">
                <select name="departmentid" >

                    <option value="<? echo $_SESSION['departmentid'] ?>"><?echo $userdepartment['name'] ?></option>

                    <?for($i=0;$i<count($department_list);$i++){?>
                        <option value="<? echo $department_list[$i]['nid'] ?>"><? echo $department_list[$i]['name'] ?></option>
                    <? } ?>
                </select>
            </div>
        </div>






        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="remark" placeholder="备注" class="layui-textarea">  </textarea>
            </div>
        </div>






        <input name="sys_part" type="hidden" value="<? echo $system_part ?>"/>
        <input name="nowpageid" type="hidden" value="<? echo $_REQUEST['nowpageid'] ?>"/>
        <input name="sortby" type="hidden" value="<? echo $_REQUEST['sortby'] ?>"/>










        <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
 


 
 
        </div>
		
 
 
<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>








<?php include_once('../modules/footer.php'); ?> </body>
</html>
